package com.rainbow.properties

import com.rainbow.emum.LoginType
import org.springframework.boot.context.properties.ConfigurationProperties


/**
 *rainbow
 */
@ConfigurationProperties(prefix = "merryyou.security")
class SecurityProperties {

    val signOutUrl = "/merryyou-signOut.html"

    val loginType = LoginType.JSON

    /**
     * 验证配置
     */
    val code = ValidateCodeProperties()

    /**
     * 记住我的有效时间
     */
    var rememberMeSeconds: Int = 60 * 60 * 24 * 7

    val session = SessionProperties()
}